package qt.dao;

import org.apache.ibatis.annotations.Param;
import qt.domain.Sskzmdygx;

import java.util.List;

/**
 * Created by charmyyy on 2017/10/29.
 */
public interface SskzmdygxDao {
    public List<Sskzmdygx> getAllSskzmdygx();

    public Sskzmdygx getSskzmdygx(@Param("stcd") String stcd,@Param("tycd")String tycd,@Param("obitcd")String obitcd);

    public int getSskzmdygxCount();

    public List<Sskzmdygx> getPageSskzmdygx(int start, int limit);

    public List<Sskzmdygx> getPageSskzmdygxByGldw(int start, int limit,@Param("admagcd")String admagcd);

    public List<Sskzmdygx> getPageSskzmdygxByAddvcd(int start, int limit,@Param("addvcd")String addvcd);

    public int getSskzmdygxByAddvcdCount(@Param("addvcd")String addvcd);

    public int getSskzmdygxByGldwCount(@Param("admagcd")String admagcd);

    public int addSskzmdygx(Sskzmdygx sskzmdygx);

    public int upptSskzmdygx(Sskzmdygx sskzmdygx);

    public int deleSskzmdygx(@Param("stcd") String stcd,@Param("tycd")String tycd,@Param("obitcd")String obitcd);
    //是否记录相同
    public int getSame(@Param("sscd") String sscd);

    public List<Sskzmdygx> getAllSskzm(@Param("stcd") String stcd);

    public int getAllSskzmCount(@Param("stcd") String stcd);

    public List<Sskzmdygx> getAllSskzmdygxByNmOrId(int start, int limit,@Param("nmOrId") String nmOrId);

    public int getSskzmdygxCountByNmOrId(@Param("nmOrId") String nmOrId);
}
